#ifndef FIELDWINDOW_HH
#define FIELDWINDOW_HH

#include "Window.h"
#include "NewParameters.h"

#include <QtGui>

class FieldWindow : public Window
{
  Q_OBJECT

private:
  QComboBox *pulseType;
  QWidget *angleWidget;
  QStackedWidget *layout;
  QDoubleSpinBox *amplitude,*phi,*theta,*length;
  QDoubleSpinBox *thetaMin,*thetaMax,*thetaStep;
  QLineEdit *max,*min,*step,*constantAmplitude;

public:
  FieldWindow();

  virtual ~FieldWindow();
  NewParameters getParameters(NewParameters params);
  void loadParameters(NewParameters params);

signals:
  void loopSignal();

public slots:
  void showTraj();
  void showLoop();
  void showAstroid();
};

#endif
